package com.hou.controller;

import com.hou.pojo.User;
import com.hou.service.UserService;
import com.hou.utils.CreateData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author shkstart
 * @create 2021-09-15-21:59
 */
@RestController
@CrossOrigin
@RequestMapping("data")
public class DataController {
    @Autowired
    CreateData createData;
    @Autowired
    UserService userService;

    // 随机数产生
    @GetMapping("data")
    public Object createData(){
        Object randoms = createData.CreateDate();
        return randoms;
    }


}
